package cn.elwy.rcp.ui.table.setting.provider;

import cn.elwy.rcp.ui.table.model.ColumnInfo;
import cn.elwy.rcp.ui.table.provider.TablePaneCheckStateProvider;

public class ColumnCheckStateProvider extends TablePaneCheckStateProvider {

  @Override
  public boolean isChecked(Object element) {
    if (element instanceof ColumnInfo) {
      return ((ColumnInfo) element).isVisible();
    }
    return false;
  }

  @Override
  public boolean isGrayed(Object element) {
    return false;
  }

}
